package day1;

public class TestAccount {
    public static void main(String[] args) {
        //创建银行账户类的对象
        Account account1 = new Account();
        //访问对象的属性
//        account1.id = "9999";
//        System.out.println("is"+account1.id);
        System.out.println("id:"+account1.getId());
        account1.setId("9999");
        System.out.println("id:"+account1.getId());
        account1.setBalance(0.0);
        System.out.println("balance:"+account1.getBalance());

        account1.show();


        Account account2 = new Account();
        System.out.println("id:"+account2.getId());
        account2.setId("8888");
        System.out.println("id:"+account2.getId());
        account2.setBalance(2.0);
        System.out.println("balance:"+account2.getBalance());

        account2.show();
    }
}
